package com.itheima.edu.info.manager.factory;

import com.itheima.edu.info.manager.dao.BaseStudentDao;
import com.itheima.edu.info.manager.dao.OtherStudentDao;

/*
    学生库管工厂类:
        核心职责: 专门对外提供学生库管对象
 */
public class StudentFactory {

    //注意: 当方法的返回值类型是一个接口类型时,方法中需要返回的是该接口的实现类对象
    public static BaseStudentDao getStudentDao() {
        return new OtherStudentDao();
        //return new StudentDao();
    }
}
